
local db = TUNING.MOD_AVATAR_BH_MOBIUS.food

---@type data_buff[]
local data = {
    {
        id = 'bh_mobius_icecream_absorb',
        onattachedfn = function (inst, target, id)
            if target and target:HasTag('player') then
                if target.components.combat then
                    target.components.combat.externaldamagetakenmultipliers:SetModifier(inst,db.bh_mobius_icecream.absorb,'bh_mobius_icecream_absorb')
                end
            end
        end,
        ondetachedfn = function (inst, target, id)
            if target and target:HasTag('player') then
                if target.components.combat then
                    target.components.combat.externaldamagetakenmultipliers:RemoveModifier(inst,'bh_mobius_icecream_absorb')
                end
            end
        end,
        duration = db.bh_mobius_icecream.duration,
        buff_string = STRINGS.MOD_AVATAR_BH_MOBIUS.BUFF.bh_mobius_icecream_absorb,
        attached_string = STRINGS.MOD_AVATAR_BH_MOBIUS.BUFF.bh_mobius_icecream_absorb_desc,
        detached_string = STRINGS.MOD_AVATAR_BH_MOBIUS.BUFF.bh_mobius_icecream_absorb_cancel,
    }
}


return data